package com.guoran100.adphoto.application;

import android.app.Application;
import android.content.Context;
import android.content.res.Resources;

import com.liulishuo.filedownloader.FileDownloader;

import biz.yfsoft.api.ae.AE;
import im.fir.sdk.FIR;

/**
 * Created by caomenglong on 16/8/5.
 */
public class MyApplication extends Application {
    private static MyApplication mcontext;
    public final static String FIRAPITOKEN="9a27347dce1d121d00f8cd13b4f80c14";  //FIR API TOKEN

    @Override
    public void onCreate() {
        super.onCreate();
        mcontext=this;
        //AE.me().init("08d7b0fa132b2880","6026a8e2264e94f8b8dcb57a7b428d6d").setMode(AE.MODE_DEV);
        AE.me().init("e1953c5ff0ad9f5e","6c627b2c6388ab9e12cf36057e319870").setMode(AE.MODE_PRODUCT);
        FIR.init(this); //性能监控

        FileDownloader.init(this); //下载工具初始化
     }



    public static Context getAppContext(){
        return mcontext;
    }
    public static Resources getAppResources(){
        return getAppResources();
    }
}
